package com.deplume.ssm.service.impl.admin;

import com.deplume.ssm.common.Page;
import com.deplume.ssm.mapper.admin.IResumeMapper;
import com.deplume.ssm.pojo.admin.ExpectIndustry;
import com.deplume.ssm.pojo.admin.ExpectJobType;
import com.deplume.ssm.pojo.admin.Resume;
import com.deplume.ssm.pojo.admin.SalaryType;
import com.deplume.ssm.service.inface.admin.IResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by libing on 2016/8/4.
 */
@Service("resumeService")
public class ResumeServiceImpl implements IResumeService {

    @Autowired
    IResumeMapper resumeMapper;

    @Override
    public List<Resume> returnResumes(Page page) throws Exception {
        return resumeMapper.returnResumes(page);
    }

    @Override
    public Resume selectResumeById(int resumeId) throws Exception {
        return resumeMapper.selectResumeById(resumeId);
    }

    @Override
    public List<ExpectJobType> expectJobTypeLists() throws Exception {
        return resumeMapper.expectJobTypeLists();
    }

    @Override
    public List<SalaryType> expectSalaryLists() throws Exception {
        return resumeMapper.expectSalaryLists();
    }

    @Override
    public List<ExpectIndustry> expectIndustryLists() throws Exception {
        return resumeMapper.expectIndustryLists();
    }
}
